home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 18412 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: csun.edu!kc44097
  2. From: kc44097@csun.edu (chen)
  3. Newsgroups: comp.lang.c++
  4. Subject: Help!C++ beginner
  5. Date: 20 Apr 1996 11:02:09 GMT
  6. Organization: California State University, Northridge
  7. Message-ID: <4lag7h$oip@dewey.csun.edu>
  8. NNTP-Posting-Host: louie.csun.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11.  
  12.       I am a beginner of C++,I have a C++ book,but I do not think
  13. it is very good,now I have some question which can not been found
  14. from this book,can someone give me some advice !Please e-mail me
  15. : kc44097@huey.csun.edu
  16.  
  17.                   Thank you very much !!
  18.  
  19.            My question is :
  20. ----------------------------------------------------------------
  21.     In C++ ,there are threee kind og inherence : public,protect and
  22. private,suppose there is a base class A which has public,private and protected
  23. member ,and a inherented class B,now if
  24.  
  25. (1) public inherence,which part of A will inherent by B ?Does public of A
  26.     is still public in B ?(private of A is private of B ? protected of A
  27.     is protected of B ?)
  28. (2) private inherence,same as (1)
  29. (3) protected inherence,same as (1)
  30.